@echo off
if not exist out (
    md out
)
if exist tmp (
    rd /s /q tmp
)
md tmp\dist
md tmp\node_modules\@terminus-term
xcopy dist tmp\dist /s /q
xcopy mylib\@terminus-term tmp\node_modules\@terminus-term /s /q
copy app.js tmp\
copy mylogger.bundle.js tmp\
copy server.bundle.js tmp\
copy myssh.js tmp\
copy ngterm.ico tmp\
copy package_pkg.json tmp\
cd tmp
call pkg -c package_pkg.json app.js -d > 2.out
move /Y ngterm-* out\
cd ..
